Module-level declarations
Types
Link copied to clipboard
Link copied to clipboard
struct deposit_token_data
Link copied to clipboard
entity token_to_prototype_mapping
Link copied to clipboard
struct token_transferred_request
Link copied to clipboard
struct withdrawal_token_data
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function _mint_token(account: account, token_name: text, contract_address: byte_array, token_id: integer, chain_id: text)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function is_owned_by(chain_name: text, contract_address: byte_array, token_id: integer, account_id: byte_array): boolean
Link copied to clipboard
function lock_token(contract_address: byte_array, chain_name: text, token_id: integer, account: account)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function unlock_token(chain_name: text, contract_address: byte_array, token_id: integer, token_name: text, account: account)
Link copied to clipboard
Queries
Link copied to clipboard
@mount("evm_bridge.filter_eligible_for_fast_withdrawal")
query filter_eligible_for_fast_withdrawal(account_id: byte_array, chain_name: text, tokens: list<withdrawal_token_data>): list<withdrawal_token_data>
Link copied to clipboard
Link copied to clipboard
@mount("evm_bridge.get_contract")
query get_contract(address: byte_array, chain_name: text): (chain: text, address: byte_array, deployedBlockHeight: integer)?
Link copied to clipboard
@mount("evm_bridge.get_token_mappings")
query get_token_mappings(): (token_to_prototype_mapping: list<(token_name: text, prototype_name: text)>, contract_token_to_prototype_mapping: list<(token_name: text, contract_address: byte_array, prototype_name: text)>)
Link copied to clipboard
@mount("evm_bridge.owns_token")
query owns_token(token: withdrawal_token_data, chain_name: text, evm_address: byte_array): boolean
Link copied to clipboard
@mount("evm_bridge.token_withdrawn")
query token_withdrawn(token: withdrawal_token_data, chain_name: text): boolean
Operations
Link copied to clipboard
@mount("evm_bridge.force_token_withdrawal_event")
operation force_token_withdrawal_event(chain_name: text, deposit_address: byte_array, tokens: list<withdrawal_token_data>, block_number: integer)
Link copied to clipboard
@mount("evm_bridge.process_fast_withdrawal")
operation process_fast_withdrawal(account_id: byte_array, auth_descriptor_id: byte_array, chain_name: text, tokens: list<withdrawal_token_data>, eth_address: byte_array)
Link copied to clipboard
@mount("evm_bridge.process_request_token_withdrawal_event")
operation process_request_token_withdrawal_event(chain_name: text, deposit_address: byte_array, tokens: list<withdrawal_token_data>, block_number: integer, eth_address: byte_array)
Link copied to clipboard
@mount("evm_bridge.process_token_deposited_event")
operation process_token_deposited_event(chain_name: text, deposit_address: byte_array, tokens: list<deposit_token_data>, block_number: integer, eth_address: byte_array)
Link copied to clipboard
@mount("evm_bridge.process_transfer_event")
operation process_transfer_event(chain_name: text, elle_contract_address: byte_array, block_number: integer, token_transferred_request: token_transferred_request)
Link copied to clipboard
Link copied to clipboard
@mount("evm_bridge.register_contract")
operation register_contract(address: byte_array, chain_name: text, block_number: integer)
Link copied to clipboard
@mount("evm_bridge.register_token_name_mapping")
operation register_token_name_mapping(token_name: text, prototype_name: text, contract_address: byte_array?)
Link copied to clipboard
@mount("evm_bridge.update_contract_block_number")
operation update_contract_block_number(address: byte_array, chain_name: text, block_number: integer)
Link copied to clipboard
@mount("evm_bridge.update_contract_block_number_unsafe")
operation update_contract_block_number_unsafe(address: byte_array, chain_name: text, block_number: integer)